import httpInstance from '@/utils/http'
// API：/api/comment/likeComment
export const favTarget = (targetId, targetType, isFavorite) => {
  return httpInstance({
    url: `/api/fav/favTarget`,
    method: 'POST',
    data: {
      targetId: targetId, // commentId 对应 targetId
      targetType: targetType,
      isFavorite: isFavorite,
    },
  })
}

export const getFav = () => {
  return httpInstance({
    url: '/api/fav/getFav',
    method: 'get',
  })
}
